Hi Parth,
There is no way to release the lock on an entity without either committing the changes or rolling back the changes. After you edit the entity, to release the lock, you will either have to save and commit the changes or rollback the changes.
By the way, commit shouldn't be causing any issues if called in right way. I recommend doing it in following way.
lr_transaction = lr_btadminh->get_transaction( ).
IF lr_transaction->save( iv_force_save = abap_true iv_asynchronous = abap_false ) EQ abap_true.
lr_transaction->commit( iv_keep_locks = abap_false ).
ELSE.
lr_transaction->revert( iv_suppress_buffer_sync = 'X' ).
lr_transaction->rollback( ).
ENDIF.
Hope this will resolve your issue. If it doesn't then please share your code.