(l_destroy): New function for destroying locked memory blocks.