Remove locked memory