corrected signed/unsigned literal bug in HLE custom locking functions